import { _decorator, Collider2D, Component, Contact2DType, IPhysics2DContact, Node } from 'cc';
import { MainLlogic } from './MainLlogic';
const { ccclass, property } = _decorator;
/**
 * 怪物脚本模板，继承专用
 */
@ccclass('Monster')
export class Monster extends Component {
    /**
     * 用于记录来自哪个节点池
     */
    monsterpoolnum: number;

    /**
     * 怪物节点初始化
     * @param monsterpoolnum 节点池编号
     */
    initialize(monsterpoolnum:number){

    }

    recovery(){
        this.node.getParent().getComponent(MainLlogic).putMonster(this.node)
    }
}


